﻿using System;
using System.Net.Sockets;

namespace Honeycomb.Transport
{
    /// <summary>
    /// INetworkPeer interface.
    /// </summary>
    public interface INetworkPeer : IDisposable
    {
        /// <summary>
        /// Get stream.
        /// </summary>
        /// <returns>Stream.</returns>
        NetworkStream GetStream();

        /// <summary>
        /// Gets the network address of the Peer.
        /// </summary>
        string Address { get; }
    }
}
